using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement.Records;
using System.ComponentModel;

namespace Twitter.Models
{
    public class SearchPartRecord : ContentPartRecord
    {
        public virtual string SearchQuery { get; set; }
        public virtual int Width { get; set; }
        public virtual int Height { get; set; }
        public virtual string WidgetTitle { get; set; }
        public virtual string Caption { get; set; }
        public virtual string BackgroundShellColor { get; set; }
        public virtual string ShellColor { get; set; }
        public virtual string TweetsBackgroundColor { get; set; }
        public virtual string TweetsColor { get; set; }
        public virtual string TweetsLinksColor { get; set; }
        public virtual bool ScrollBar { get; set; }
        public virtual bool Loop { get; set; }
        public virtual bool Live { get; set; }
        public virtual bool HashTags { get; set; }
        public virtual bool Timestamp { get; set; }
        public virtual bool Avatars { get; set; }
        [DefaultValue(true)]
        public virtual bool TopTweets { get; set; }
        public virtual int Behavior { get; set; }
        public virtual int Interval { get; set; }

        public SearchPartRecord()
        {
            Width = 250;
            Height = 300;
            BackgroundShellColor = "#8ec1da";
            ShellColor = "#ffffff";
            TweetsBackgroundColor = "#ffffff";
            TweetsColor = "#444444";
            TweetsLinksColor = "#1985b5";
            ScrollBar = false;
            Loop = true;
            Live = true;
            HashTags = true;
            Timestamp = true;
            Avatars = true;
            TopTweets = true;
            Behavior = (byte)Twitter.Models.Enums.WidgetBehavior.All;
            Interval = 6;
        }
    }
}